package com.unknown.wificontrol.adapter;


import androidx.fragment.app.Fragment;

import com.aspsine.fragmentnavigator.FragmentNavigatorAdapter;

import java.util.List;

public class MainTabAdapter implements FragmentNavigatorAdapter {

    private List<Fragment> pages;

    public MainTabAdapter(List<Fragment> pages) {
        this.pages = pages;
    }

    @Override
    public Fragment onCreateFragment(int i) {
        return pages.get(i);
    }

    @Override
    public String getTag(int i) {
        return String.valueOf(i);
    }

    @Override
    public int getCount() {
        return pages.size();
    }
}
